#region Microsoft Public License
/*
 * (c) Copyright Chenjun Wu. http://utablesdk.codeplex.com
 * 
 * This source is subject to the Microsoft Public License (Ms-PL).
 * Please see http://go.microsoft.com/fwlink/?LinkID=131993 for details.
 * All other rights reserved.
 */
#endregion

﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using UTable.Input;
using UTable.Input.MultiTouch;
using UTable.Objects;
using UTable.Objects.Controls;
using System.Collections.ObjectModel;

namespace UTable.Tests
{
	/// <summary>
	/// Interaction logic for UListViewTest.xaml
	/// </summary>
	public partial class UListViewTest : UObject
	{
		public class PayInfo
		{
			public PayInfo(String name, String country, bool paid)
			{
				this.Name = name;
				this.Country = country;
				this.Paid = paid;
			}
			public String Name { get; set; }

			public String Country { get; set; }

			public bool Paid { get; set; }
		}

		public ObservableCollection<PayInfo> PayInfoList = new ObservableCollection<PayInfo>();

		public UListViewTest()
		{
			InitializeComponent();

			PayInfoList.Add(new PayInfo("Alexander", "Chicago", true));
			PayInfoList.Add(new PayInfo("Olivotto", "Chicago", false));
			PayInfoList.Add(new PayInfo("Bassli", "Nothbrook", true));
			PayInfoList.Add(new PayInfo("Laszlo", "Nothbrook", true));
			PayInfoList.Add(new PayInfo("Alexander", "Chicago", true));
			PayInfoList.Add(new PayInfo("Olivotto", "Chicago", false));
			PayInfoList.Add(new PayInfo("Bassli", "Nothbrook", true));
			PayInfoList.Add(new PayInfo("Laszlo", "Nothbrook", true));
			PayInfoList.Add(new PayInfo("Alexander", "Chicago", true));
			PayInfoList.Add(new PayInfo("Olivotto", "Chicago", false));
			PayInfoList.Add(new PayInfo("Bassli", "Nothbrook", true));
			PayInfoList.Add(new PayInfo("Laszlo", "Nothbrook", true));
			PayInfoList.Add(new PayInfo("Alexander", "Chicago", true));
			PayInfoList.Add(new PayInfo("Olivotto", "Chicago", false));
			PayInfoList.Add(new PayInfo("Bassli", "Nothbrook", true));
			PayInfoList.Add(new PayInfo("Laszlo", "Nothbrook", true));
			PayInfoList.Add(new PayInfo("Alexander", "Chicago", true));
			PayInfoList.Add(new PayInfo("Olivotto", "Chicago", false));
			PayInfoList.Add(new PayInfo("Bassli", "Nothbrook", true));
			PayInfoList.Add(new PayInfo("Laszlo", "Nothbrook", true));
			MyList.ItemsSource = PayInfoList;
		}
	}
}
